package com.wxj.book.dao;

import com.wxj.book.pojo.Borrow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BorrowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Borrow record);

    int insertSelective(Borrow record);

    Borrow selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Borrow record);

    int updateByPrimaryKey(Borrow record);

    Borrow getByBookId(@Param("bookId") Integer bookId, @Param("stuNum") Integer stuNum);

    int getCount(Integer stuNum);

    int backBook(@Param("bookId") Integer bookId, @Param("stuNum") Integer stuNum);
}